package utils

import (
	"crypto/md5"
	"encoding/hex"
)

func Md5(password string) (string) {
	hasher := md5.New()
	_, err := hasher.Write([]byte(password))
	if err != nil {
		return ""
	}
	return hex.EncodeToString(hasher.Sum(nil))
}